<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name=viewport content="with=device-width,initial-scale=1.0">
<link href="../resource/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">
<link href="../resource/css/basic.css" rel="stylesheet">
<script src="../resource/js/jquery.min.js"></script>
<script src="../resource/bootstrap/js/bootstrap.min.js"></script>
<script src="../resource/js/lesson.js"></script>
<script src="../resource/js/user.js"></script>
<script>
	$(function(){
		$('#loginout').click(logout);
		$('#typeCommit').click(addLessonType);
	});
</script>
<title>二级课程类添加</title>
</head>
<body>
	<nav class="navbar navbar-primary navbar-fixed-top" role="invigation">
		<div class="navbar-header">
			<img class="img-responsive" src="../resource/image/header3.png" />
		</div>
		<ul class="user nav navbar-nav navbar-right">
			<li><a href="#">欢迎您，${admin.petName }</a></li>
			<li><a id="loginout" href="#" data-roles="admin"><i class="glyphicon glyphicon-off"></i> 退出登录
			</a></li>
		</ul>
	</nav>
	<div>
		<nav class="col-md-2">
			<div class="row panel panel-default">
				<div class="panel-body">
					<div class="list-group">
						<a class="list-group-item" href="../admin">首页导航</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="studentMajor">专业管理<span
							class="badge">2</span></a> <a class="list-group-item"
							href="publishDepartment">系别添加</a> <a class="list-group-item"
							href="publishMajor">专业添加</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="lessonType">课程类别<span
							class="badge">2</span></a> <a class="list-group-item"
							href="publishOneType">课程一级类添加</a> <a class="list-group-item active"
							href="publishTwoType">课程二级类添加</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="userRoles">角色权限管理</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="#">公告发布</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="#">系统信息<span class="badge">1</span></a>
						<a class="list-group-item" href="#">异常信息</a>
					</div>
					<div class="list-group">
						<a class="list-group-item" href="systemInfo">性能监测</a>
					</div>
				</div>
			</div>
		</nav>
		<div class="col-md-10">
			<div class="row panel panel-default">
				<div class="panel-heading">
					<ol class="breadcrumb">
						<li><a href="../admin"><i class="glyphicon glyphicon-home"></i>
							首页</a></li>
						<li class="active">二级课程类添加</li>
					</ol>
				</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-sm-2 control-label text-right">课程类型</label>
						<div class="col-sm-10">
							<input id="typeName" class="form-control" type="text" />
						</div>
					</div>
					<br /><br />
					<div class="form-group">
						<label class="col-sm-2 control-label text-right">一级课程类</label>
						<div class="col-sm-6">
							<select id="oneType" class="form-control">
								<c:forEach items="${lessonOneType }" var="lot">
									<option value="${lot.id }">${lot.typeName }</option>
								</c:forEach>
							</select>
						</div>
					</div>
					<br /><br />
					<div class="col-sm-10 col-sm-offset-2 form-group">
						<button id="typeCommit" class="btn btn-danger btn-block" type="button">添加</button>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>